//==============
// 
//   @阿杰  Meng
//
//==============
类 AB5497
	@code
   private android.view.View mChildOfContent;
   private int usableHeightPrevious;
   private android.widget.FrameLayout.LayoutParams frameLayoutParams;

   public #<AB5497>(android.app.Activity c) {
      android.widget.FrameLayout content = (android.widget.FrameLayout)c.findViewById(android.R.id.content);
      mChildOfContent = content.getChildAt(0);
      mChildOfContent.getViewTreeObserver().addOnGlobalLayoutListener(new android.view.ViewTreeObserver.OnGlobalLayoutListener() {
         public void onGlobalLayout() {
		 	android.graphics.Rect r = new android.graphics.Rect();
     		mChildOfContent.getWindowVisibleDisplayFrame(r);
            int usableHeightNow = (r.bottom);// - r.top);// 全屏模式下： return r.bottom;
      	  if (usableHeightNow != usableHeightPrevious) {
            	int usableHeightSansKeyboard = mChildOfContent.getRootView().getHeight();
            	int heightDifference = usableHeightSansKeyboard - usableHeightNow;
         	   if (heightDifference > (usableHeightSansKeyboard / 4)) frameLayoutParams.height = usableHeightSansKeyboard - heightDifference;
         		else frameLayoutParams.height = usableHeightSansKeyboard;
         		mChildOfContent.requestLayout();
         		usableHeightPrevious = usableHeightNow;
      		}
         }
      });
      frameLayoutParams = (android.widget.FrameLayout.LayoutParams) mChildOfContent.getLayoutParams();
	}
    @end
	
   @静态 
   方法 选择窗口(窗口 : 安卓窗口)
      code new #<AB5497>(#窗口);
   结束 方法

结束 类